<?php require "../controller/ctrl-form.php"; 

if ($_GET['ord']=1){
	unset ($_GET['ord']);
}
else{
	header ("Location: ../index.php");
	exit;
}
?>

<!DOCTYPEhtml>
<html>
	<head>
		<title>
			Candy Shop
		</title>
		<link href="../style/style.css" rel="stylesheet" type="text/css" />
		<link href="../style/bs/css/bootstrap.css" rel="stylesheet" type="text/css" />
		<meta http-equiv="content-type" content="text/html"; charset="utf-8">
	</head>
	<body>
		<form name="form" autocomplete="off" action="form.php" method="POST">
			<table>
				<tr>
					<td>E-mail:</td>
					<td><input type="email" name="from"/></td>
				</tr>
				<tr>
					<td>Имя:</td>
					<td><input type="text" name="name"/></td>
				</tr>
				<tr>
					<td><input type="submit" name="send" value="Продолжить" /></td>
					<td><span><?php echo $error; ?></span></td>
				</tr>
			<table>
		</form>
	</body>
</html>